<script setup lang="ts">
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';
const time  = ref(3)
	onLoad(()=>{
		setTimeout(()=>{
			uni.reLaunch({
				url:'/pages/index/index'
			})
			
		},3000)
		const t =  setInterval(()=>{
			if(time.value<=1){
				clearInterval(t)
			}
			time.value = time.value-1
		},1000)
	})
</script>

<template>
	<view style="display: flex;align-items: center;justify-content:center;">
		<uni-icons type="checkbox-filled" size="200" color="green"></uni-icons>
	</view>
	<view style="text-align: center;">
		支付成功,{{time}}秒钟后将返回首页...
	</view>
	
</template>

<style lang="scss" scoped>

</style>
